﻿<%@ Page Title="" Language="C#" MasterPageFile="~/SiteMaster.Master" AutoEventWireup="true" CodeBehind="AdminActiv.aspx.cs" Inherits="Design.WebForm14" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

    <script src="tab/jquery-1.4.1-vsdoc.js" type="text/javascript"></script>
    <script src="tab/jquery-1.4.1.js" type="text/javascript"></script>
    <script src="tab/jquery-1.4.1.min.js" type="text/javascript"></script>
    <link href="tab/Site.css" rel="stylesheet" type="text/css" />
    <link href="tab/tabcontent.css" rel="stylesheet" type="text/css" />
    <script src="tab/tabcontent.js" type="text/javascript"></script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

        <ul id="countrytabs" class="shadetabs">
            <li class="style10"><a href="#" rel="admin" class="selected">Administrator</a></li>
            <li class="style10"><a href="#" rel="equipment" class="style11">Equipment</a></li>
            <li class="style10"><a href="#" rel="catalogue">Catalogue</a></li>
            <li class="style10"><a href="#" rel="news">News</a></li>
            <li class="style10"><a href="#" rel="reports">Reports</a></li>
        </ul>

        <div style="border: 2px solid #0066CC; width: 450px; margin-bottom: 1em; padding: 10px">
            <div id="admin" class="tabcontent">
                <!-- code for administrator-->
                <table>
                        <tr>
                            <td>
                                <asp:Label ID="UserRole" runat="server">User Role:</asp:Label>
                            </td>
                            <td>
                                            <asp:Panel ID="usertype" runat="server">
                                                <asp:RadioButton ID="radmanager" runat="server" Text="Manager" GroupName="role" />
                                                <asp:RadioButton ID="radgeneralemp" runat="server" Text="General Employee" GroupName="role" />
                                            </asp:Panel>
                            </td>
                        </tr>
</table>
                <asp:CreateUserWizard ID="CreateUserWizard1" runat="server" 
                    CompleteSuccessText="Welcome, You Have Successfully Signed Up." 
                    ContinueDestinationPageUrl="~/Home.aspx" CreateUserButtonText="Sign Up" 
                    style="text-align: center" 
                    
                    InvalidPasswordErrorMessage="Password length minimum: {0}. Non-alphanumeric characters required." 
                    oncreateduser="CreateUserWizard1_CreatedUser">
                    <WizardSteps>
                        <asp:CreateUserWizardStep ID="CreateUserWizardStep1" runat="server">
                            <ContentTemplate>
                                <table>
                                    <tr>
                                        <td align="right">
                                            <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">User Name:</asp:Label>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="UserName" runat="server"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" 
                                                ControlToValidate="UserName" ErrorMessage="User Name is required." 
                                                ToolTip="User Name is required." ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right">
                                            <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">Password:</asp:Label>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="Password" runat="server" TextMode="Password"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" 
                                                ControlToValidate="Password" ErrorMessage="Password is required." 
                                                ToolTip="Password is required." ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right">
                                            <asp:Label ID="ConfirmPasswordLabel" runat="server" 
                                                AssociatedControlID="ConfirmPassword">Confirm Password:</asp:Label>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="ConfirmPassword" runat="server" TextMode="Password"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="ConfirmPasswordRequired" runat="server" 
                                                ControlToValidate="ConfirmPassword" 
                                                ErrorMessage="Confirm Password is required." 
                                                ToolTip="Confirm Password is required." ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right">
                                            <asp:Label ID="EmailLabel" runat="server" AssociatedControlID="Email">E-mail:</asp:Label>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="Email" runat="server"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="EmailRequired" runat="server" 
                                                ControlToValidate="Email" ErrorMessage="E-mail is required." 
                                                ToolTip="E-mail is required." ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="center" colspan="2">
                                            <asp:CompareValidator ID="PasswordCompare" runat="server" 
                                                ControlToCompare="Password" ControlToValidate="ConfirmPassword" 
                                                Display="Dynamic" 
                                                ErrorMessage="The Password and Confirmation Password must match." 
                                                ValidationGroup="CreateUserWizard1"></asp:CompareValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="center" colspan="2" style="color:Red;">
                                            <asp:Literal ID="ErrorMessage" runat="server" EnableViewState="False"></asp:Literal>
                                        </td>
                                    </tr>
                                </table>
                            </ContentTemplate>
                        </asp:CreateUserWizardStep>
                        <asp:CompleteWizardStep ID="CompleteWizardStep1" runat="server" >
                            <ContentTemplate>
                                <table>
                                    <tr>
                                        <td align="center" colspan="2">
                                            Complete</td>
                                    </tr>
                                    <tr>
                                        <td>
                                            Welcome, You Have Successfully Signed Up.</td>
                                    </tr>
                                    <tr>
                                        <td align="right" colspan="2">
                                            <asp:Button ID="ContinueButton" runat="server" CausesValidation="False" 
                                                CommandName="Continue" Text="Continue" ValidationGroup="CreateUserWizard1" />
                                        </td>
                                    </tr>
                                </table>
                            </ContentTemplate>
                        </asp:CompleteWizardStep>
                    </WizardSteps>
                </asp:CreateUserWizard>
            </div>
            <div id="equipment" class="tabcontent">
                <!-- code for equipment-->
                <table>
                        <tr>
                            <td>
                                Equipment ID:
                            </td>
                            <td>
                                <asp:TextBox ID="txtEquipID" runat="server"></asp:TextBox>
                            </td>
                            <td>
                                <asp:Button ID="btnAddEquip" runat="server" Text="Add Equip" Width="89px" 
                                    onclick="btnAddEquip_Click" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Name:
                            </td>
                            <td>
                                <asp:TextBox ID="txtEquipName" runat="server"></asp:TextBox>
                            </td>
                            <td>
                                <asp:Button ID="btnSearchEquip" runat="server" Text="Search Equip" 
                                    Width="98px" onclick="btnSearchEquip_Click" />    
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Price:
                            </td>
                            <td>
                                <asp:TextBox ID="txtEquipPrice" runat="server"></asp:TextBox>
                            </td>
                            <td>
                                <asp:Button ID="btnUpdateEquip" runat="server" Text="Update Equip" 
                                    Width="97px" OnClick="btnUpdateEquip_Click" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Description:
                            </td>
                            <td>
                                <asp:TextBox ID="txtEquipDesc" runat="server" TextMode="MultiLine"></asp:TextBox>
                            </td>
                            <td>
                                <asp:Button ID="btnDeleteEquip" runat="server" Text="Delete Equip" 
                                    Width="104px" OnClick="btnDeleteEquip_Click" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Image:
                            </td>
                            <td>
                                <asp:FileUpload ID="fluUploadImage" runat="server" />
                            </td>
                            <td>
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td>
                                Category:
                            </td>
                            <td>
                                <asp:DropDownList ID="drpCategory" runat="server" AutoPostBack="True">
                                    <asp:ListItem>Select Category</asp:ListItem>
                                    <asp:ListItem>Camcoders</asp:ListItem>
                                    <asp:ListItem>VTR&#39;s</asp:ListItem>
                                    <asp:ListItem>Vision Mixer</asp:ListItem>
                                    <asp:ListItem>Cranes/JIB</asp:ListItem>
                                    <asp:ListItem>Lights</asp:ListItem>
                                    <asp:ListItem>Monitors</asp:ListItem>
                                    <asp:ListItem>Sound Gear</asp:ListItem>
                                    <asp:ListItem>Dolly &amp; Tracks</asp:ListItem>
                                    <asp:ListItem>Comm Sets</asp:ListItem>
                                    <asp:ListItem>Generators</asp:ListItem>
                                    <asp:ListItem>Video Data Projectors</asp:ListItem>
                                    <asp:ListItem>Plasma Screen</asp:ListItem>
                                    <asp:ListItem>Accessories</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                            <td>
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td>
                                &nbsp;</td>
                            <td>
                                &nbsp;</td>
                            <td>

                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td>
                                &nbsp;</td>
                            <td>
                                &nbsp;</td>
                            <td>
                                <asp:Image ID="imgDisplay" runat="server" Width="100" Height="100" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                &nbsp;</td>
                            <td>
                                &nbsp;</td>
                            <td>
                                
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Button ID="btnPrevEquip" runat="server" Text="&lt; Previous" 
                                    Width="81px" />
                            </td>
                            <td>
                                
                            </td>
                            <td>
                                <asp:Button ID="btnNextEquip" runat="server" Text="Next &gt;" Width="81px" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                &nbsp;</td>
                            <td>
                                &nbsp;</td>
                            <td>
                                &nbsp;</td>
                        </tr>
                    </table>
            </div>
            <div id="catalogue" class="tabcontent">
                <!--code for catalogue-->
                <table>
                        <tr>
                            <td>
                                &nbsp;</td>
                            <td>
                                &nbsp;</td>
                            <td>
                                <asp:ListBox ID="lstDisplayAllCat" runat="server" Height="152px" 
                                    SelectionMode="Multiple" Width="188px"></asp:ListBox>
                            </td>
                        </tr>
                       <%-- <tr>
                            <td>
                                Catalogue ID:
                            </td>
                           <%-- <td>
                                <asp:TextBox ID="txtCatID" runat="server"></asp:TextBox>
                            </td>--%>
                        <%--</tr>--%>--%>
                        <tr>
                            <td>
                                Seasonal Rate:
                            </td>
                            <td>
                                <asp:TextBox ID="txtSeasonalRate" runat="server" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Start Date:
                            </td>
                            <td>
                                <%--<eo:datepicker ID="dtpStartDate" runat="server">
                                </eo:datepicker>--%>
                                <asp:Calendar ID="calStartD" runat="server"></asp:Calendar>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                End Date:
                            </td>
                            <td>
                                <%--<eo:datepicker ID="dtpEndDate" runat="server">
                                </eo:datepicker>--%>
                                <asp:Calendar ID="calEndD" runat="server"></asp:Calendar>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Season: 
                            </td>
                            <td>
                                <asp:TextBox ID="txtSeason" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                &nbsp;</td>
                            <td class="style38">
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td>
                                &nbsp;</td>
                            <td>
                                <asp:Button ID="btnSearchCat" runat="server" Text="Search Cat" 
                                    Width="101px" Height="26px" />
                            </td>
                            <td>
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Button ID="btnPrevCat" runat="server" Text="&lt; Previous" Width="71px" />
                            </td>
                            <td>
                                &nbsp;</td>
                            <td>
                                <asp:Button ID="btnNextCat" runat="server" Text="Next &gt;" Width="71px" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                &nbsp;</td>
                            <td>
                                &nbsp;</td>
                            <td>
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Button ID="btnAddCat" runat="server" Text="Add Cat" Width="79px" />
                            </td>
                            <td>
                                <asp:Button ID="btnUpdateCat" runat="server" Text="Update Cat" 
                                    Width="103px" />
                            </td>
                            <%--<td>
                                <asp:Button ID="btnDeleteCat" runat="server" Text="Delete Cat" 
                                    Width="83px" />
                            </td>--%>
                        </tr>
                    </table>
            </div>
            <div id="news" class="tabcontent">
               <!-- code for news-->
               <table>
                        <tr>
                            <td>
                                News:
                            </td>
                            <td>
                                <asp:TextBox ID="txtNews" runat="server"></asp:TextBox>
                            </td>
                            <td>
                                <asp:Button ID="btnAddNews" runat="server" Text="Add News" Width="89px" 
                                    onclick="btnAddNews_Click" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                               News Description:
                            </td>
                            <td>
                                <asp:TextBox ID="txtNewsDescript" runat="server" TextMode="MultiLine"></asp:TextBox>
                            </td>
                            <td>
                                <asp:Button ID="BtnDelNews" runat="server" Text="Delete News" 
                                    Width="104px" OnClick="btnDeleteNews_Click" />
                            </td>
                        </tr>
                        <tr>
                        <td>
                                <asp:Button ID="BtnSaveNews" runat="server" Text="Save News" 
                                    Width="104px" OnClick="btnSaveNews_Click" />
                            </td>
                            </tr> 
                            
                        </table>

 
</li>

<li id="Li1" class="box">

            </div>
            <div id="reports" class="tabcontent">
               <!-- code for reports-->

            </div>
        </div>
        <script type="text/javascript">
            var countries = new ddtabcontent("countrytabs")
            countries.setpersist(true)
            countries.setselectedClassTarget("link") //"link" or "linkparent"
            countries.init()
        </script>

                                <%--<asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" 
                                    DataSourceID="ObjectDataSource1" Width="584px" CssClass="style70">
                                    <Columns>
                                        <asp:BoundField DataField="fname" HeaderText="First Name" 
                                            SortExpression="fname" >
                                        <HeaderStyle ForeColor="#FF9900" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="lname" HeaderText="Last Name" 
                                            SortExpression="lname" >
                                        <HeaderStyle ForeColor="#FF9900" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="identity" HeaderText="Identity" 
                                            SortExpression="identity" >
                                        <HeaderStyle ForeColor="#FF9900" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="address" HeaderText="Address" 
                                            SortExpression="address" >
                                        <HeaderStyle ForeColor="#FF9900" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="contact" HeaderText="Contact No." 
                                            SortExpression="contact" >
                                        <HeaderStyle ForeColor="#FF9900" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="email" HeaderText="Email" SortExpression="email" >
                                        <HeaderStyle ForeColor="#FF9900" />
                                        </asp:BoundField>
                                    </Columns>
                                </asp:GridView>

                                <asp:ObjectDataSource ID="ObjectDataSource1" 
            runat="server" SelectMethod="getuser_info" 
            TypeName="BusinessLayer.Add_Users_Profile"></asp:ObjectDataSource>--%>
                            
</asp:Content>
